package cn.xkshow.core.authorization.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Module entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "qx_module")
public class Module implements java.io.Serializable {

	// Fields

	private Integer id;
	private String levelTree;
	private Integer parentid;
	private String name;
	private String urls;
	private String target;
	private Integer orderby;
	private Date createtime;
	private Integer setting;

	// Constructors

	/** default constructor */
	public Module() {
	}

	/** full constructor */
	public Module(String levelTree, Integer parentid, String name,
			String urls, String target, Integer orderby, Date createtime,
			Integer setting) {
		this.levelTree = levelTree;
		this.parentid = parentid;
		this.name = name;
		this.urls = urls;
		this.target = target;
		this.orderby = orderby;
		this.createtime = createtime;
		this.setting = setting;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "level_tree", nullable = false)
	public String getLevelTree() {
		return this.levelTree;
	}

	public void setLevelTree(String levelTree) {
		this.levelTree = levelTree;
	}

	@Column(name = "parentid", nullable = false)
	public Integer getParentid() {
		return this.parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	@Column(name = "name", nullable = false, length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "urls", nullable = false)
	public String getUrls() {
		return this.urls;
	}

	public void setUrls(String urls) {
		this.urls = urls;
	}

	@Column(name = "target", nullable = false)
	public String getTarget() {
		return this.target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	@Column(name = "orderby", nullable = false)
	public Integer getOrderby() {
		return this.orderby;
	}

	public void setOrderby(Integer orderby) {
		this.orderby = orderby;
	}

	@Column(name = "createtime", nullable = false, length = 19)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "setting", nullable = false)
	public Integer getSetting() {
		return this.setting;
	}

	public void setSetting(Integer setting) {
		this.setting = setting;
	}

}